<include file="leftBar" />
      <div class="mainBar fl" style="width:549px;padding:0;">
          <div class="mainCon container">
			<div class="tip" id="sendTip" style="margin:8px 0px -6px 10px;width:506px;line-height:150%">发送提示</div>
            <div class="tips">
            <p>赶快和小伙伴们分享一下你在学习过程中的喜悦~<span>( Ctrl + Enter 发送)</span></p>
            </div>
            <div class="sendBox">
            	<div class="bubbleTriangle fl"></div>
            	<div class="send box fl">
                	<form method="post" id="sendMood" onkeydown="if(event.keyCode==13&&event.ctrlKey) post_form('__URL__/addMood',this,'sendTip');">
                	<textarea name="mood" placeholder="请输入状态内容..."></textarea>
                    </form>
                </div>
            </div>
            <div class="tab clearfix container">
            	<ul>
                	<li class="current">我关注的</li>
                    <li>关注我的</li>
                </ul>
            </div>
				<div class="mainContent">
					<div class="moods">
						<ul class="iCenterMoods">
							<?php if(count($moods)): ?>
							<volist name="moods" id="vo">
								<li>
									<div class="userInfo fl">
										<a href="__APP__/i/<{$vo.user.id}>"><img src="<{$vo.avatar|parseAvatar=###,100}>"></a>
										<span><a href="__APP__/i/<{$vo.user.id}>"><{$vo.username}></a></span>
									</div>
									<div class="bubbleTriangle fl">
									</div>
									<div class="moodContent box fl">
										<p><{$vo.mood}></p>
										<span class="fl"><{$vo.ctime|date="Y-m-d H:i:s",###}></span>
										<span class="fr" cid="<{$vo.id}>">
										<a href="javascript:;" applaud><?php 
										$applauded = false;
										foreach($applauds[$vo['id']] as $applaud){
											if($applaud['uid']==$_SESSION['uid']){
												$applauded = true;
												break;
											}
										}
										echo $applauded?'已赞':'赞';
										if(count($applauds[$vo['id']])) echo '('.count($applauds[$vo['id']]).')';
										?></a>&nbsp;
										<a href="javascript:;" level1Mood>评论</a>&nbsp;
										<?php if($vo['uid'] == $_SESSION['uid']) echo '<a href="javascript:;" deleteMood>删除</a>'; ?>
										</span>
										<?php if($vo['comments']): ?>
											<ul class="moodComment clearfix">
												<volist name="vo['comments']" id="sub">
														<li>
															<div class="commentUser fl">
															 <a href="#">
															<img src="<{$sub.avatar|parseAvatar=###,100}>" />
															</a>
															</div>
															<div class="commemtCont fl">
																<div class="name">
																	<a href="__APP__/i/<{$sub.uid}>" style="color:#000;"><{$sub.username}></a>
																</div>
																<div class="cont">
																	<{$sub.mood}>
																</div>
																<div class="do">
																	<span class="fl"><{$sub.ctime|date="Y-m-d H:i:s",###}></span>
																	<span class="fr" cid="<{$sub.id}>">
																		<a href="javascript:;" applaud><?php 
																		$applauded = false;
																		foreach($applauds[$sub['id']] as $applaud){
																			if($applaud['uid']==$_SESSION['uid']){
																				$applauded = true;
																				break;
																			}
																		}
																		echo $applauded?'已赞':'赞';
																		if(count($applauds[$sub['id']])) echo '('.count($applauds[$sub['id']]).')';
																		?></a>&nbsp;
																		<a href="javascript:;" level2Mood>回复</a>&nbsp;
																		<?php if($sub['uid'] == $_SESSION['uid']) echo '<a href="javascript:;" deleteMood>删除</a>'; ?>
																	</span>
																</div>
															</div>
														</li>
												</volist>
											</ul>
										<?php endif; ?>
									</div>
								</li>
							</volist>
							<?php else: ?>
							<div style="height: 20px;width: 100%;padding: 20px 0;text-align: center;font-weight: bold;">嘿，木有动态呢，要来一发么？</div>
							<?php endif; ?>
						</ul>
					</div>
				</div>
          </div>
      </div>
<include file="rightBar" />